<template>
    <div class="not-found-container">
      <div class="content">
        <div class="error-code animate-float">404</div>
        <div class="error-message">页面消失在了数字海洋中</div>
        <el-button
          type="primary"
          class="home-button"
          @click="$router.push('/')"
        >
          返回首页
        </el-button>
      </div>
    </div>
  </template>
  
  <script setup lang="ts">
  import { ElButton } from 'element-plus'
  </script>
  
  <style lang="scss">
  $primary-color: #409EFF;
  $secondary-color: #ff9933;
  
  .not-found-container {
    height: 100vh;
    background: linear-gradient(135deg, $primary-color 0%, $secondary-color 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: gradientShift 10s ease infinite;
    
    .content {
      text-align: center;
      color: white;
      
      .error-code {
        font-size: 20rem;
        font-weight: bold;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        background: linear-gradient(45deg, lighten($primary-color, 10%), lighten($secondary-color, 5%));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1;
      }
  
      .error-message {
        font-size: 2rem;
        margin: 2rem 0;
        letter-spacing: 2px;
        background: linear-gradient(45deg, #fff 30%, #ffd700 70%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
  
      .home-button {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
        border-radius: 50px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.2);
        border: 2px solid white;
        
        &:hover {
          transform: translateY(-3px);
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
          background-color: rgba(255, 255, 255, 0.4);
        }
      }
    }
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
  }
  
  .animate-float {
    animation: float 3s ease-in-out infinite;
  }
  
  @media (max-width: 768px) {
    .error-code {
      font-size: 12rem !important;
    }
    
    .error-message {
      font-size: 1.5rem !important;
    }
  }
  </style>